package com.stlm2.dems.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.entity.DdmObligation;
import com.stlm2.dems.dao.DdmObligationDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

import java.util.List;

@Repository("ddmObligationDao")
public class DdmObligationDaoImpl extends BaseDaoImpl<DdmObligation> implements DdmObligationDao {
    @Override
    public List<DdmObligation> getByGoodsId(int goodsId) {
        return _selectList("getByGoodsId",goodsId);
    }

    @Override
    public DdmObligation getByLabel(String label) {
        return  selectOne("getByLabel",label);
    }
}